<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: lhl <493355399@qq.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 异常设置
// +----------------------------------------------------------------------
return [
    //api接口异常状态码
    'api_status_code' => [
        //服务器异常
        'server_error' => 500,
        //客户端命令下发失败
        'directive_error' => 504,
        //验证器异常
        'validate_error' => 201,
        //系统未安装
        'not_install_error' => 101,
        //非法IP访问
        'not_ip_error' => 102,
        //未登录或token无效
        'not_login_error' => 103,
        //没有权限操作
        'not_auth_error' => 104,
        //..
    ],
];